Skip to content

feat(runtime): add AI remote proxy plugin - #4990

Open
zhangHongEn wants to merge 8 commits into
module-federation:mainfrom
zhangHongEn:agent/ai-proxy-remotes
Open

feat(runtime): add AI remote proxy plugin#4990
zhangHongEn wants to merge 8 commits into
module-federation:mainfrom
zhangHongEn:agent/ai-proxy-remotes

Conversation

@zhangHongEn

@zhangHongEn zhangHongEn commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the module-federation-ai-proxy-remotes runtime plugin for debugging remote Module Federation manifests in environments where the Chrome extension is unavailable, including H5 applications.

The plugin supports URL-driven remote manifest overrides, validates proxy destinations, stores debugging state in sessionStorage, and provides an optional floating console. URL configuration parsing tolerates extra percent-encoding layers introduced by dev-server open URLs. The package also exports generateAIDebugUrl(hostUrl, overrides, options?) for generating correctly encoded debugging URLs.

Initialization is globally guarded across host and child remotes. The functional hooks are registered once in the global runtime plugin list, while the configured runtime plugin entry returns a hook-free placeholder to prevent duplicate execution. Subsequent initializations do not parse the URL, rewrite storage, register hooks, or schedule the console again.

The documentation presents both supported URL-generation approaches and uses remote consistently in its examples. Version 0.1.7 has been published to npm.

Related Issue

N/A

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Validation

  • pnpm --filter module-federation-ai-proxy-remotes run test — 17 tests passed
  • pnpm --filter module-federation-ai-proxy-remotes run build
  • Relevant-file Prettier checks
  • npm tarball dry run

The package build completes with the existing mixed default/named exports warning. The full-repository Prettier check remains skipped because unrelated generated files under apps/website-new/doc_build already have formatting drift.

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b7fd49c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@zhangHongEn
zhangHongEn force-pushed the agent/ai-proxy-remotes branch from 5acc65c to 2042726 Compare August 12, 2026 10:40
@zhangHongEn
zhangHongEn marked this pull request as ready for review August 13, 2026 02:43
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant